<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{#传入emp ,如果工资小于6000,就不显示#}
<h1>Look</h1>
{% if emp.last > 13000%}
	<span>{{ emp.last }}</span>
    {% else %}
    <span>工资有点可悲</span>
{% endif %} 
<br>
<table>
    <tr>
        <tb>id</tb>---
        <tb>name</tb>
    </tr>
    {% for foo in res.rules.all %}
    	<tr>
        {% if foo.first %}
        	--->
        {% endif %} 
            <td>
                {{ forloop.counter }}
            </td>
            <td>
                {{ foo.name }}
            </td>
        </tr>
    {% endfor %}
</table>


</body>
</html>